package com.varton.v2;

import java.lang.reflect.Proxy;

public class TestMain {
    public static void main(String[] args) {
        Runner r = new Runner();
        Runnable p = (Runnable)Proxy.newProxyInstance(TestMain.class.getClassLoader(),Runner.class.getInterfaces(),new CountTimeHandler(r));
        p.run();
    }
}
